package com.woniuxy.ticket_cinema.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.ticket_cinema.entity.Dto.ScheduleDto;
import com.woniuxy.ticket_cinema.entity.Schedule;
import com.woniuxy.ticket_cinema.mapper.ScheduleMapper;
import com.woniuxy.ticket_cinema.service.ScheduleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author booty
 * @since 2021-02-22
 */
@Service
public class ScheduleServiceImpl extends ServiceImpl<ScheduleMapper, Schedule> implements ScheduleService {

    @Resource
    private ScheduleMapper scheduleMapper;

    //根据电影id查询排片以及电影院信息
    @Override
    public List<ScheduleDto> findScheduleDtoByFilmId(Page<ScheduleDto> page,int id) {
        List<ScheduleDto> list = scheduleMapper.findScheduleDtoByFilmId(page,id);
        return list;
    }
}
